package com.dao;

import com.entity.GoldPoints;
import com.entity.User;
import com.vo.GoldPointsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoldPointsDao {
    //根据用户id更新积分或者金币的数量
    int insertGPInfo(@Param("gp") GoldPoints gp, @Param("cost_type") int cost_type);
    int insertGoldPoints(GoldPoints goldPoints);
    public int insertGoldById(GoldPoints goldPoints);
    List<GoldPoints> selectGoldPointPageNo(@Param("goldPoints")GoldPoints goldPoints);
    public GoldPointsVo getGoldPointsVo(int uid);
    public List<GoldPoints> selectRecord(User user);
}
